<div class="block">
	<div class="block-title">
		报表清单
	</div>
	<div class="block-body" style="width:auto;margin-top:-30px">
		<?php 
		$this->widget('zii.widgets.grid.CGridView', array(
				'id' => 'history-grid',
				'dataProvider' => $dataProvider,
				'columns'=>array(
					array('name' => '月份', 'value' => '$data->year."-".$data->month'),
					array('name' => '加盟账号数', 'value' => '$data->owner_count'),
					array('name' => '会员数', 'value' => '$data->joinmb'),
					array('name' => '首次订单数', 'value' => '$data->firstordernum'),
					array('name' => '首次订单总额', 'value' => '"\$".$data->firstorderamount'),
					array('name' => '佣金总额', 'value' => '"\$".$data->total_earn'),
					array('name' => '操作', 'value' => '"<a href=\'/index.php/admin/payment/monthReportDetail/month/{$data->year}-{$data->month}\'>查看明细</a>"', 'type' => 'raw')
				),
			));
		?>
	</div>
</div>